package com.hbx.eduservice.controller;

import com.hbx.commonutils.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

/**
 * @Author hbx
 * @Date 2023/9/29 10:12
 */
@Api(tags = {"登录管理"})
@CrossOrigin
@RestController
@RequestMapping("/eduservice/user")
public class EduLoginController {
    //login
    @PostMapping("/login")
    public R login(){
        return R.ok().data("token","admin");
    }

    //info
    @GetMapping("/info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","hbx").data("avatar","https://tupian.qqw21.com/article/UploadPic/2019-4/2019421946080074.jpg");
    }
}
